
#include "Thread.h"


#define BASTERD_IS_WINDOWS 0 //(BASTERD_PLATFORM == BASTERD_PLATFORM_WIN32) || (BASTERD_PLATFORM == BASTERD_PLATFORM_WIN64)

namespace basterd
{
	// --------------------------------------------------------------------
	// MutexLocker
	// --------------------------------------------------------------------
	MutexLocker::MutexLocker( Mutex& m )
		: mutex(m)
	{
		mutex.lock();
	}
	// --------------------------------------------------------------------
	MutexLocker::~MutexLocker()
	{
		mutex.unlock();
	}
	// --------------------------------------------------------------------
}
